package ux52

import "gitee.com/yanwc/net/utils"

// 卫星定位信息字段

type (
	X52U1_35    uint8
	X52U1_35Raw [1]byte
)

func (f X52U1_35) Raw() (out X52U1_35Raw) {
	copy(out[:], utils.NumberToBytesWithBigEndian(f))
	return
}

func (f X52U1_35Raw) Type() (out X52U1_35) {
	return utils.BytesToNumber[X52U1_35](f[:])
}
